import request from '@/utils/request'
// 请求组织架构
export const fetchDepartmentList = () => request.get('/company/department')
// 获取部门负责人列表
export const fetchManagerList = () => request.get('/sys/user/simple')
// 新增部门
export const fetchAddDepartAPI = (obj) => request.post('/company/department', obj)

// 删除部门详情
export const fetchDelDepart = (id) => request.delete(`/company/department/${id}`)
// 获取部门详情
export const fetchDetail = id => request.get(`/company/department/${id}`)
// 更新详情
export const fetchUpdateDepart = data => request.put(`/company/department/${data.id}`, data)
